// 自定义配置
const fs = require('fs')
module.exports = {
  css: {
    loaderOptions: {
      sass: {
        data: fs.readFileSync('src/style/mixin.scss', 'utf-8') // 全局配置sass
      }
    }
  },
  lintOnSave: true, // 是否使用eslint
  productionSourceMap: true,
  devServer: {
    port: 6060,
    host: '0.0.0.0',
    https: false,
    proxy: {
      '/api': {
        target: 'http://192.168.8.156:3003',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}
